package io.github.talelin.latticy.service.ag;
import io.github.talelin.latticy.dto.ag.building.CreateOrUpdateBuildingDTO;
import io.github.talelin.latticy.model.ag.BuildingDO;

import java.util.List;


public interface BuildingService {
    //根据id查楼栋
    BuildingDO getById(int id);
    //查询所有
    List<BuildingDO> getBuildings();
//    List<BuildingDO> getBuildingName();
    //创建楼栋
    boolean createBuilding(CreateOrUpdateBuildingDTO validator);
    //删除楼栋
    boolean deleteById(int id);
    //修改楼栋
    boolean updateBuilding(BuildingDO building,CreateOrUpdateBuildingDTO validator);
}
